/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package search;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;

/**
 *
 * @author Yasmani
 */
public class Product {
    private String id;
    private String product_name;
    private String product_description;
    private String pic;
    private String price;
    private String amount;
    private String user_name;
    private String partNumber;
    private String manufacturer;
    
    
    
    public Product(String id, String product_name, String product_description, String user_name, String pic, String price, String amount,
            String partNumber, String manufacturer){
        this.id = id;
        this.product_name = product_name;
        this.product_description = product_description;
        this.user_name = user_name;
        this.pic = pic;
        this.price = price;
        this.amount = amount;
        this.partNumber = partNumber;
        this.manufacturer = manufacturer;
    }
    
    public void setId(String id){
        this.id = id;
    }
    
    public String getId(){
        return id;
    }
    
    public void setProduct_name(String product_name){
        this.product_name = product_name;
    }
    
    public String getProduct_name(){
        return product_name;
    }
    
    public void setProduct_description(String product_description){
        this.product_description = product_description;
    }
    
    public String getProduct_description(){
        return product_description;
    }
    
    public void setUser_name(String user_name){
        this.user_name = user_name;
    }
    
    public String getUser_name(){
        return user_name;
    }
    
    public void setPic(String pic){
        this.pic = pic;
    }
    
    public String getPic(){
        return pic;
    }
    
    public void setPrice(String price){
        this.price = price;
    }
    
    public String getPrice(){
        return price;
    }
    
    public void setAmount(String amount){
        this.amount = amount;
    }
    
    public String getAmount(){
        return amount;
    }
    
    public void setPartNumber(String partNumber){
        this.partNumber = partNumber;
    }
    
    public String getPartNumber(){
        return partNumber;
    }
    
    public void setManufacturer(String manufacturer){
        this.manufacturer = manufacturer;
    }
    
    public String getManufacturer(){
        return manufacturer;
    }
  
    public String toString()
    {
        return "SearchResult{" +
                " Product Name=" + product_name + " " +
                ", description=" + product_description + " " +
                ", seller=" + user_name + " " +
                "}";
    }
}


